
public class MainClass {

	public static void main (String arg[]) {
		
		Database db = new Database();
		db.getManager().accept(new PrintVisitor());
		
		AverageVisitor av = new AverageVisitor();
		db.getManager().accept(av);
		System.out.println("Average salary is " + av.getAverage());
	}
}

